-
-
Notifications
You must be signed in to change notification settings - Fork 836
fix JavaScript lint errors #6453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Issue: Using new Array() violates the stdlib/no-new-array rule. fix: creating array using an array literal Signed-off-by: VEER RAJ <136178369+VeerRaj-007@users.noreply.github.com>
Hello! Thank you for your contribution to stdlib. We noticed that the contributing guidelines acknowledgment is missing from your pull request. Here's what you need to do:
This acknowledgment confirms that you've read the guidelines, which include:
We can't review or accept contributions without this acknowledgment. Thank you for your understanding and cooperation. We look forward to reviewing your contribution! |
Coverage Report
The above coverage report was generated for the changes in this PR. |
@@ -119,7 +119,7 @@ function ifthenAsync( predicate, x, y, done ) { | |||
return done( error ); | |||
} | |||
nargs = arguments.length; | |||
args = new Array( nargs ); | |||
args = Array.from({ length: nargs }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not what we want. This project uses ES5. The lint error message tells you explicitly what you should be doing to resolve this issue.
This pull request has been automatically closed because it has been inactive for an extended period after changes were requested. If you still wish to pursue this contribution, feel free to reopen the pull request or submit a new one. We appreciate your interest in contributing to stdlib! |
Issue: Using new Array() violates the stdlib/no-new-array rule.
fix: creating an array using an array literal
Resolves #6417
Description
This pull request:
Related Issues
This pull request:
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers